﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Survival.World;
using System.Linq;
using System.Text;

namespace Survival.Plants
{
    public abstract class Plant : IPhysical
    {

        private PlantServices plantServices;
        public PlantServices PlantServices { get { return plantServices; } }

        //todo: profile this to see if it's the fastest way to keep time
        private DateTime BirthTime;
        public TimeSpan Alivetime { get { return DateTime.Now - BirthTime; } }

        public Plant(PlantServices plantServices)
        {
            this.plantServices = plantServices;
            BirthTime = DateTime.Now;
        }

        public abstract string SpriteName { get; }

        public abstract Vector2 Position { get; }

        public abstract float Scale { get; }

        public abstract void Update(GameTime gameTime);
    }
}
